<div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">个人设置</h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Basic Form Elements
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-8">
                                    <form method="post" role="form" action="<?=site_url('users/do_edit')?>" id="myform">
                                        <div class="form-group">
                                            <label>真实姓名：</label>
                                            <input class="form-control" value="<?=$name?>" name="name">
                                            <p class="help-block">请准确填写用户名</p>
                                        </div>
                                        <div class="form-group">
                                            <label>联系电话：</label>
                                            <input class="form-control" value="<?=$phone?>" readonly name="phone">
                                            <p class="help-block">请准确填写联系电话</p>
                                        </div>
                                        <div class="form-group">
                                            <label>使用邮箱：</label>
                                            <input class="form-control" value="<?=$email?>" readonly name="email">
                                            <p class="help-block">请准确填写邮箱</p>
                                        </div>
                                        <div class="form-group">
                                            <label>生日：</label>
                                            <input class="form-control" name="birthday" value="<?=date('Y-m-d',$birthday);?>" onclick="laydate()">
                                        </div>
                                       
                                        <div class="form-group">
                                            <label>性别：</label>
                                            <div class="radio">
                                                <label>
                                                    <input type="radio" name="sex" id="optionsRadios1" value="1" checked>男
                                                </label>
                                            </div>
                                            <div class="radio">
                                                <label>
                                                    <input type="radio" name="sex" id="optionsRadios2" value="2">女
                                                </label>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label>权限：</label>
                                             <select class="form-control" name="group">
                                                <option value="1">管理员</option>
                                                <option value="2" selected="selected">普通员工</option>
                                             
                                            </select>
                                            <p class="help-block">请准确填写用户信息</p>
                                        </div>
                                        <input type="hidden" name="id" value="<?=$id?>">
                                        <button type="submit" class="btn btn-primary">修改</button>
                                        <button type="reset" class="btn btn-default">重置</button>
                                    </form>
                                </div>
                                <!-- /.col-lg-6 (nested) -->
                            </div>
                            <!-- /.row (nested) -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
<script>
;!function(){

//laydate.skin('molv');

laydate({
   elem: '#demo'
})

}();
</script>
<script type="text/javascript">
    $('#myform').submit(function() {
        var index = layer.load(2);
        $(this).ajaxSubmit(function(data){
            layer.close(index);
            if(data == 1){
                layer.alert("操作成功！",{
                    icon:1,
                },function(){
                    location.href='<?=site_url("users/index")?>';
                });
            }else{
                layer.alert(data,{
                    icon:2,
                });
            }
        })
        return false;
    })

</script>